package com.zy.mapper.sys;

import java.util.List;
import com.zy.model.sys.ZyRole;
import com.zy.model.sys.ZyRoleExample;
import com.zy.model.sys.ZyUser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface ZyRoleMapper {
    int countByExample(ZyRoleExample example);

    int deleteByExample(ZyRoleExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ZyRole record);

    int insertSelective(ZyRole record);

    List<ZyRole> selectByExampleWithRowbounds(ZyRoleExample example, RowBounds rowBounds);

    List<ZyRole> selectByExample(ZyRoleExample example);

    ZyRole selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ZyRole record, @Param("example") ZyRoleExample example);

    int updateByExample(@Param("record") ZyRole record, @Param("example") ZyRoleExample example);

    int updateByPrimaryKeySelective(ZyRole record);

    int updateByPrimaryKey(ZyRole record);

    List<ZyRole> selectRoleByUser(ZyUser  user);
}